
#include "xmodule_config.h"
#include "em_wdt.h"
#include "otp_config.h"
#include "rtl876x_aon_wdg.h"

#if MODULE_CHECK_ENABLED( WDT )

void em_wdt_init(void)
{
    aon_wdg_init( 0, TIMEOUT_SECONDS_OF_WDT );
    aon_wdg_enable();
}

void em_wdt_reload(void)
{
    AON_WDG_Restart();
}
 
#else

void em_wdt_init(void)
{
    aon_wdg_disable();
}

void em_wdt_reload(void)
{

}
#endif
